package com.pxst.merchant.service;

import com.pxst.merchant.entity.SysMerchantAvailableBankEntity;
import com.pxst.resp.ApiResp;
import io.swagger.annotations.Api;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: @Ryan
 * @Description:
 * @CreateTime: 2023-09-13 16:10
 */
@Service
public interface SysMerchantAvailableBankService {

    /**
     * -Author: @Ryan
     * -Description: 新增商户可用银行
     * -Param: [entity]
     * -return: com.pxst.resp.ApiResp<java.lang.String>
     **/
    public ApiResp<String> addSysMerchantAvailableBank(SysMerchantAvailableBankEntity avail);

    /**
     * -Author: @Ryan
     * -Description: 更新商户对该银行的可用状态
     * -Param: [entity]
     * -return: com.pxst.resp.ApiResp<java.lang.String>
     **/
    public ApiResp updateSysMerchantAvailableBank(SysMerchantAvailableBankEntity avail);

    /**
     * -Author: @Ryan
     * -Description: 通过商户id查询商户可用银行列表
     * -Param: [merchantId]
     * -return: com.pxst.resp.ApiResp<java.util.List<com.pxst.merchant.entity.SysMerchantAvailableBankEntity>>
     **/
    public ApiResp<List<SysMerchantAvailableBankEntity>> getMerchantAvailableBankListByMerchantId(Long merchantId);


}
